﻿@model IEnumerable<NavigationItem>
@if (Model != null && Model.Count() > 0)
{
    int idx = 0;
    int total = Model.Count();
    <div class="crumble-path">
        <ul>
            @foreach (var item in Model)
            {
                <li><a href="@(item.Url)" title="@(item.Tooltip)">@(item.Caption)</a>
                    @if (idx < total - 1)
                    {
                        <span>&gt;</span> 
                    }
                </li>
                    idx++;
            }
        </ul>
    </div>
}